function toggleCategory(elem, id1, id2)
{
	if(elem.nodeName != 'INPUT')
		return;
	if(elem.value == true)
	{
		document.getElementById(id1).style.display = "";
		document.getElementById(id2).style.display = "";
	}
	else if(elem.value == false)
	{
		document.getElementById(id1).style.display = "none";
		document.getElementById(id2).style.display = "none";
	}
}

function showDiv(id1, id2)
{
	if(document.getElementById(id1).style.display == "")
		return;
	document.getElementById(id1).style.display = "";
	var children = document.getElementById(id1).getElementsByTagName("DIV");
	for(var i = 0; i < children.length; i++)
		children[i].style.display = "none";
	document.getElementById(id2).style.display = "";
}
